<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>show5</title>
</head>
<body>

    <ul>
        <li th:each="user,stat : ${users}">
            <span th:text="${stat.index+1}">索引</span>
            姓名： <span th:text="${user.name}">name</span>-
            年龄：<span th:text="${user.age}">age</span>
        </li>
    </ul>
</body>
</html>